package io.bdmc.modules.bss.service;

import com.baomidou.mybatisplus.extension.service.IService;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceAlarmMask;
import io.bdmc.modules.bss.model.DeviceAlarmMaskParam;

/**
 * <p>
 * 设备报警 服务类
 * </p>
 *
 * @author ping
 * @since 2020-07-01
 */
public interface IDeviceAlarmMaskService extends IService<DeviceAlarmMask> {

    MyPage<DeviceAlarmMask> mySelectPage(MyPage<DeviceAlarmMask> myPage, DeviceAlarmMaskParam params);

    /**
     * 查询指定设备告警是否被屏蔽
     * 
     * @param deviceSn     设备sn
     * @param alarmTypeCode 报警类型
     * @return true=已屏蔽
     */
    boolean isAlarmMask(String deviceSn, String alarmTypeCode);

}
